﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Render.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.Doc.Render" %>


<form></form>

<script type="text/javascript">
function onRenderSubmit(flag) {
    $('#render_flag').attr('value', flag);
}
</script>

<form id="pageForm" method="post" runat="Server" class="pageForm required-validate"
    onsubmit="return validateCallback(this, navTabAjaxDone);" action="/SystemManage/Basics/Doc/Render.aspx">

<div class="formBar">
    <div class="buttonActive"><div class="buttonContent"><button type="submit" onclick="onRenderSubmit(0)">生成所有</button></div></div>
</div>
		
<input runat="Server" ID="doc_kind" type="hidden" />
<input runat="Server" ID="render_flag" type="hidden" />

<div class="pageContent" layoutH="40">

	<div class="panel collapse" minH="100" <%=SetVisible("SingleInfo") %>>
		<h1>信息输出</h1>
		<div>
		<table class="list" width="100%">
			<tr>
				<td height="60px">模板页面</td>
				<td>
                    <asp:textbox runat="server" ID="txtSingleTemplate" Width="250px"></asp:textbox> 
                    <span style="color: #808080">
                    <br />
                    生成html的模板文件</span>
				</td>
			</tr>
			<tr>
			    <td height="60px">HTML命名</td>
			    <td>
                    <asp:textbox runat="server" ID="txtSingleName" width="250px"></asp:textbox>
                    <span style="color: #808080">
                    <br />
                    请添加<#id#>输出的html唯一!</span>
                </td>
			</tr>
            <tr>
			    <td height="60px">重新生成</td>
			    <td>
                    <asp:checkbox ID="chkRerender" runat="server" Text="重新生成"></asp:checkbox>
                     <span style="color: #808080">
                    <br />
                    勾选将覆盖已生成的文件</span>
                </td>
			</tr>
		</table>      
		<div class="formBar">
            <div class="buttonActive"><div class="buttonContent"><button type="submit" onclick="onRenderSubmit(1)">生成信息</button></div></div>
		</div>	
        </div>		

	</div>			
			
	<div class="panel collapse" minH="100" <%=SetVisible("ListInfo") %>>
		<h1>列表输出</h1>
		<div>
		<table class="list" width="100%">			
  			<tr>
				<td height="60px">模板页面</td>
				<td>
                    <asp:textbox runat="server" ID="txtListTemplate" Width="250px"></asp:textbox> 
                    <span style="color: #808080">
                    <br />
                    生成html的模板文件</span>
				</td>
			</tr>
			<tr>
			    <td height="60px">输出文件名</td>
			    <td>
                    <asp:textbox runat="server" ID="txtListName" width="250px"></asp:textbox>
                    <span style="color: #808080">
                    <br />
                    html输出文件</span>
                </td>
			</tr>
		</table>
        <div class="formBar">
            <div class="buttonActive"><div class="buttonContent"><button type="submit" onclick="onRenderSubmit(2)">生成列表</button></div></div>
		</div>	
        </div>
	</div>
	
	<div class="panel collapse" minH="100" <%=SetVisible("PagerInfo") %>>
		<h1>分页输出</h1>
		<div>
		<table class="list" width="100%">			
  			<tr>
				<td height="60px">模板页面</td>
				<td>
                    <asp:textbox runat="server" ID="txtPagerTemplate" Width="250px"></asp:textbox> 
                    <span style="color: #808080">
                    <br />
                    生成html的模板文件</span>
				</td>
			</tr>
			<tr>
			    <td height="60px">输出文件名</td>
			    <td>
                    <asp:textbox runat="server" ID="txtPagerName" width="250px"></asp:textbox>
                    <span style="color: #808080">
                    <br />
                    html输出文件, <#PageIndex#>表示页索引</span>
                </td>
			</tr>
			   
            <tr>
			    <td height="30px">分页页面大小</td>
			    <td>
                    <asp:textbox runat="server" ID="txtPagerSize" width="250px" class="number"></asp:textbox>
                </td>
			</tr>
		</table>
		<div class="formBar">
            <div class="buttonActive"><div class="buttonContent"><button type="submit" onclick="onRenderSubmit(3)">生成分页</button></div></div>
		</div>	
        </div>
	</div>
</div>
</form>

